﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FCDB.Entity;
using FB.Providers.EmployeeInfo;
using FB.Enums;
using FB.Resources.Models;
using FB.Data.Models;

namespace FCDB.Web.Models
{
    public class EmployeeModel 
    {
        public string EMPTypeName { get; set; }
        #region  
        public string EMPCode { get; set; }
        public string RefCode { get; set; } 
        public string LastName { get; set; } 
        public string FirstName { get; set; }
        public string Alias { get; set; } 
        public string ChineseName { get; set; } 
        public string Gender { get; set; } 
        public string EMPType { get; set; } 
        public int Status { get; set; } 
        public string Email { get; set; } 
        public DateTime? TerminationDate { get; set; } 
        public string TerminationType { get; set; } 
        public string UserName { get; set; }
        public Guid? UserID { get; set; }  
        public RecordState RecordState { get; set; }  
        public string ModifiedBy { get; set; }
        public string Mobile { get; set; }
        public DateTime ModifiedDate { get; set; }
        public string CreatedBy { get; set; }
        public string ExtensionNo { get; set; }
        public DateTime CreatedDate { get; set; }
        #endregion 
        public EmployeeModel()
        { 
            
        }
        public EmployeeModel(Employee entity)
        {
            Mobile = entity.Mobile;
            Alias = entity.Alias;
            ChineseName = entity.ChineseName;
            CreatedBy = entity.CreatedBy;
            CreatedDate = entity.CreatedDate;
            Email = entity.Email;
            EMPCode = entity.EMPCode;
            EMPType = entity.EMPType;
            FirstName = entity.FirstName;
            Gender = entity.Gender;
            LastName = entity.LastName;
            ModifiedBy = entity.ModifiedBy;
            ModifiedDate = entity.ModifiedDate;
            RecordState = entity.RecordState;
            RefCode = entity.RefCode;
            EMPTypeName = entity.EmployeeType.Name;
            TerminationDate = entity.TerminationDate;
            TerminationType = entity.TerminationType;
            UserID = entity.UserID;
            UserName = entity.UserName;
            ExtensionNo = entity.ExtensionNo;
        }
       
        
    }
}